package zerenlian;

import android.util.Log;

public class ShanghaiPostman extends Postman {//上海快递员
    @Override
    public void handleCourier(String address) {
        if (address.equals("Shanghai")) {
            Log.e("***"," 派送到上海 ");
            return;
        } else {
            Log.e("***"," 不是上海快递 交给下一个 ");
            nextPostman.handleCourier(address);
        }
    }
}